package com.hs.entity.dto;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageDTO {

    /**
     * 消息内容
     */
    private String content;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 用户ID
     */
    private Integer userId;

    // 接收消息的用户ID(数据库中并不存在该字段)
    private Integer messageReceiver;

    private Boolean messageReadFlag = false;

    /**
     * 对话ID
     */
    private Integer dialogueId;

}
